﻿<Window x:Class="memoUI.TopicSelectorWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:memoUI"
        mc:Ignorable="d"
        Title="Memorizer" WindowState="Maximized" WindowStyle="None" Icon="Images/DesktopLogo.png">
    <Window.Resources>
        <ContextMenu x:Key="cmButton">
            <MenuItem x:Name="TopicEdit" Header="Edit" Click="TopicEdit_Click">
                <MenuItem.Icon>
                    <Image Source="Images/edit.png" />
                </MenuItem.Icon>
            </MenuItem>
            <Separator />
            <MenuItem x:Name="TopicDelete" Header="Delete" Click="TopicDelete_Click">
                <MenuItem.Icon>
                    <Image Source="Images/delete.png" />
                </MenuItem.Icon>
            </MenuItem>
        </ContextMenu>
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="50"/>
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <Grid x:Name="HeaderGrid" Grid.Row="0" Margin="0" Background="#90C226">
            <Image x:Name="LogoImage" VerticalAlignment="Center" HorizontalAlignment="Left" Source="Images/DesktopLogo.png"/>
            <TextBlock x:Name="LogoText" Text="Memorizer" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="50,0,0,0" FontSize="32" FontWeight="ExtraLight" Foreground="White"/>
            <TextBlock x:Name="HeaderTitle" Text="Choose Topic" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="32" FontWeight="Bold" Foreground="White"/>

            <Button x:Name="ExitButton" Content="Exit" Width="60" HorizontalAlignment="Right" Margin="5,5" Click="ExitButton_Click"  Foreground="White" FontWeight="Bold" FontSize="16" BorderBrush="#FF3B0808" BorderThickness="2" Cursor="Hand" Background="Orange"/>
            <Button x:Name="NewButton" Content="New Topic" Width="120" HorizontalAlignment="Right" Margin="0,5,69.6,4.6" Click="NewButton_Click"  Foreground="White" FontWeight="Bold" FontSize="16" BorderBrush="#FF2326A6" BorderThickness="2" Cursor="Hand" Background="#83B330"/>
        </Grid>

        <Grid Grid.Row="1">
            <ScrollViewer>
                <Grid x:Name="TopicGrid" Background="White">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*" />
                        <RowDefinition Height="*" />
                        <RowDefinition Height="*" />
                        <RowDefinition Height="*" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                </Grid>
            </ScrollViewer>
        </Grid>
    </Grid>
</Window>
